const db = uniCloud.database()
exports.main = async (event, context) => {
	const {
		detail,
		icon,
		num
	} = event
	await db.collection('article').add({
		posttime:Date.now(),
		...detail,
		Image:icon,
		num:num
	})
	return detail
};